package com.autumn.security.auth;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * 用户名称或密码
 * 
 * @author 杨昌国 2018-12-06 11:21:30
 */
public class UserNamePasswordToken extends UsernamePasswordToken implements  AutumnAuthenticationToken {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2913321780177558038L;

	private String identityType;
	
	/**
	 * 
	 */
	public UserNamePasswordToken() {
		super();
	}

	/**
	 * 
	 * @param username
	 * @param password
	 */
	public UserNamePasswordToken(final String username, final char[] password) {
		super(username, password);
	}
	
	@Override
	public String getIdentityType() {
		return this.identityType;
	}

	public void setIdentityType(String identityType) {
		this.identityType = identityType;
	}
}
